package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * NotifyDelayRule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "NOTIFY_DELAY_RULE")
public class NotifyDelayRule implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 4239229964535323781L;

    // Fields  
    private Long id;
    private Long notifyRuleId;
    private Integer startTime;
    private Integer endTime;

    // Constructors

    /** default constructor */
    public NotifyDelayRule() {
    }

    /** minimal constructor */
    public NotifyDelayRule(Long id) {
        this.id = id;
    }

    /** full constructor */
    public NotifyDelayRule(Long id, Long notifyRuleId, Integer startTime, Integer endTime) {
        this.id = id;
        this.notifyRuleId = notifyRuleId;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "NOTIFY_DELAY_RULE_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "NOTIFY_RULE_ID", precision = 18, scale = 0)
    public Long getNotifyRuleId() {
        return this.notifyRuleId;
    }

    public void setNotifyRuleId(Long notifyRuleId) {
        this.notifyRuleId = notifyRuleId;
    }

    @Column(name = "START_TIME", precision = 9, scale = 0)
    public Integer getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    @Column(name = "END_TIME", precision = 9, scale = 0)
    public Integer getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "NotifyDelayRule [id=" + id + ", notifyRuleId=" + notifyRuleId + ", startTime=" + startTime + ", endTime=" + endTime + "]";
    }

}